package com.platform.service.impl;

import com.platform.dao.TOrderCommentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.entity.TOrderCommentEntity;
import com.platform.service.TOrderCommentService;

/**
 * 订单商品评论Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-05-18 14:59:10
 */
@Service
public class TOrderCommentServiceImpl implements TOrderCommentService {
    @Autowired
    private TOrderCommentDao tOrderCommentDao;

    @Override
    public TOrderCommentEntity queryObject(Long id) {
        return tOrderCommentDao.queryObject(id);
    }

    @Override
    public List<TOrderCommentEntity> queryList(Map<String, Object> map) {
        return tOrderCommentDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tOrderCommentDao.queryTotal(map);
    }

    @Override
    public int save(TOrderCommentEntity tOrderComment) {
        return tOrderCommentDao.save(tOrderComment);
    }

    @Override
    public int update(TOrderCommentEntity tOrderComment) {
        return tOrderCommentDao.update(tOrderComment);
    }

    @Override
    public int delete(Long id) {
        return tOrderCommentDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return tOrderCommentDao.deleteBatch(ids);
    }

    @Override
    public Integer updateBatch(Object[] id) {
        return tOrderCommentDao.updateBatch(id);
    }
}
